using System;
using facade.Factory.SimpleFactory.Food;

namespace facade.Factory.SimpleFactory
{
    public class MCD
    {
        public IFood GetFood(string foodName)
        {
            if(foodName=="coffee")
            {
                return new Coffee();
            }
            else if(foodName=="tomato")
            {
                return new Tomato();
            }
            else
            {
                return new Coffee();
            }
        }
    }
    
}